#include <stdio.h>
int main()
{
    char c1, c2;
    c1 = getchar();
    getchar();
    c2 = getchar();
    getchar();
    putchar(c1);
    putchar( c2);
    printf("\n%c", c1);
    printf("\n%c", c2);
    return 0;
}